import request from '@/utils/request'

// 查询生产基地用电记录列表
export function listProductionmetermonth(query) {
  return request({
    url: '/productionProcess/productionmetermonth/list',
    method: 'get',
    params: query
  })
}

// 查询生产基地用电记录详细
export function getProductionmetermonth(id) {
  return request({
    url: '/productionProcess/productionmetermonth/' + id,
    method: 'get'
  })
}

// 查询数据
export function getDate(query) {
  return request({
    url: '/productionProcess/productionmetermonth/getDate',
    method: 'get',
    params: query
  })
}

// 新增生产基地用电记录
export function addProductionmetermonth(data) {
  return request({
    url: '/productionProcess/productionmetermonth',
    method: 'post',
    data: data
  })
}

// 修改生产基地用电记录
export function updateProductionmetermonth(data) {
  return request({
    url: '/productionProcess/productionmetermonth',
    method: 'put',
    data: data
  })
}

// 删除生产基地用电记录
export function delProductionmetermonth(id) {
  return request({
    url: '/productionProcess/productionmetermonth/' + id,
    method: 'delete'
  })
}
